﻿using System;

namespace ArraysLearn
{
    class Program
    {
        static void Main(string[] args)
        {
            //char[] lettes = new char[5] { 'a', 'e', 'i', 'o', 'u' };
            //Console.WriteLine(lettes[^1]);
            //Console.WriteLine(lettes[^2]);
            //char[] firstTwo = lettes[..2];
            //Console.WriteLine(firstTwo);
            //测试range
            TestRanges();

            //测试多维数组
            TestMultidimensionalArrays();
        }
        /// <summary>
        /// 测试Ranges功能
        /// </summary>
        private static void TestRanges()
        {
            RangesTest test = new RangesTest();
            test.PrintLetters();
        }


        private static void TestMultidimensionalArrays()
        {
            MultidimensionalArrays arrays = new MultidimensionalArrays();
            arrays.PrintMatrixArrays();
        }
    }
}
